From d74b4dae203adc69ee9d92e12d5c0f30540737eb Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 30 Nov 2005 23:30:03 +0000 Subject: [PATCH] Call wr_init before the waypoint backup is done. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1604 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpsbabel/main.c b/gpsbabel/main.c index a1b735987..012acf37b 100644 --- a/gpsbabel/main.c +++ b/gpsbabel/main.c @@ -210,6 +210,8 @@ main(int argc, char *argv[]) rte_ct_bak = -1; trk_ct_bak = -1; + ovecs->wr_init(ofname); + if (global_opts.charset != &cet_cs_vec_utf8) { waypt_backup(&wpt_ct_bak, &wpt_head_bak); @@ -219,7 +221,6 @@ main(int argc, char *argv[]) cet_convert_strings(NULL, global_opts.charset, NULL); } - ovecs->wr_init(ofname); ovecs->write(); ovecs->wr_deinit(); -- 2.30.2